package cn.wolfcode.query;

import cn.wolfcode.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class CustomerReportQuery extends QueryObject{


    private String groupType="e.name";//给一个分组默认值

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;//开始时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;//结束时间




    public Date getEndDate(){
        return DateUtil.getEndDate(endDate);
    }
}
